<template>
  <div class="story-section">
    <h2 class="section-title">{{ jobTitle }}</h2>
    <div class="list-page-item">
      <div class="list-page-item-wrap">
        <ul>
          <li
            v-for="jobVideoImgItem in jobVideoImgList"
            :key="jobVideoImgItem.id"
          >
            <a>
              <div class="cover-wrap">
                <img :src="jobVideoImgItem.imgUrl" alt="" />
              </div>
              <p class="card-title">{{ jobVideoImgItem.name }}</p>
            </a>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MyJob1',
  props: {
    jobVideoImgList: {
      id: Number,
      name: String,
      imgUrl: String,
    },
    jobTitle: {
      type: String,
    },
  },
}
</script>

<style lang="less" scoped>
.section-title {
  margin-bottom: 24px;
}
.story-section {
  width: 1200px;
  height: 300px;
  margin: 25px auto;
  margin-bottom: 0;
  padding: 24px 24px 34px;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 8px;
  margin-bottom: 50px;
}
.cover-wrap {
  width: 270px;
  height: 152px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  img {
    width: 270px;
    transition: all 0.2s ease-in-out;
  }
}
.cover-wrap img:hover {
  transform: scale(1.1, 1.1);
  transition: all 0.2s ease-in-out;
}
.card-title {
  margin: 14px 0 0;
  font-size: 16px;
  color: #12141a;
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.list-page-item-wrap {
  ul {
    display: flex;
    li {
      width: 270px;
      margin-right: 24px;
    }
  }
}
iframe {
  width: 100%;
}
.icon-cuocha_kuai {
  position: absolute;
  cursor: pointer;
  right: 0;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 0 0 0 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
